package edu.hawaii.myisern.action;

import static org.junit.Assert.assertEquals;

import org.junit.Test;

/**
 * Provides test cases.
 * 
 * @author Jon Lao
 * @author Jared Sunouchi
 * @author Chiao-Fen Zielinski-Liu
 */
public class TestIndexActionBean {
  
  /** Set the username. */
  private String username = "username";
  
  /** Set the password. */
  private String password = "password";
  
  /**
   * Tests the IndexActionBean class.
   *
   * @throws Exception If problems occur
   */
  @Test
  @SuppressWarnings("deprecation") //TableCell.asText() is httpunit 1.5.3, needed due to Hackystat
  public void testIndexActionBean() throws Exception {
    IndexActionBean indexActionBean = new IndexActionBean();
    
    indexActionBean.setUsername("username");
    assertEquals("test equal username", username, indexActionBean.getUsername());
    
    indexActionBean.setPassword("password");
    assertEquals("test equal password", password, indexActionBean.getPassword());
    
  }
}
